/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.adv.entity;

import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.modules.hk.sys.entity.user.HkUser;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 企业广告热度广告Entity
 * @author 罗天文
 * @version 2018-05-03
 */
public class HkEnterpriseHotAdv extends DataEntity<HkEnterpriseHotAdv> {
	
	private static final long serialVersionUID = 1L;
	private HkAllAdv enterprise;		// 企业广告
	private String title;		// 标题
	private String subtitle;		// 副标题
	private Date beginDate;		// 开始时间
	private Date endDate;		// 结束时间
	private String playTime;		// 播放时间段
	private String state;		// 是否给奖励
	private String imgSrc;		// 视频地址
	private HkUser user;		// 用户id
	private String coverImgSrc;		// 封面图片
	private String integralCount;		// 总积分
	private String imgRank;		// 序号
	private String showType;		// 展示类型
	private String content;		// 内容
	private Date beginBeginDate;		// 开始 开始时间
	private Date endBeginDate;		// 结束 开始时间
	
	public HkEnterpriseHotAdv() {
		super();
	}

	public HkEnterpriseHotAdv(String id){
		super(id);
	}

	@NotNull(message="企业广告不能为空")
	public HkAllAdv getEnterprise() {
		return enterprise;
	}

	public void setEnterprise(HkAllAdv enterprise) {
		this.enterprise = enterprise;
	}
	
	@Length(min=0, max=100, message="标题长度必须介于 0 和 100 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=100, message="副标题长度必须介于 0 和 100 之间")
	public String getSubtitle() {
		return subtitle;
	}

	public void setSubtitle(String subtitle) {
		this.subtitle = subtitle;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
	public String getPlayTime() {
		return playTime;
	}

	public void setPlayTime(String playTime) {
		this.playTime = playTime;
	}
	
	@Length(min=0, max=1, message="是否给奖励长度必须介于 0 和 1 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	@Length(min=0, max=200, message="视频地址长度必须介于 0 和 200 之间")
	public String getImgSrc() {
		return imgSrc;
	}

	public void setImgSrc(String imgSrc) {
		this.imgSrc = imgSrc;
	}
	
	public HkUser getUser() {
		return user;
	}

	public void setUser(HkUser user) {
		this.user = user;
	}
	
	@Length(min=0, max=200, message="封面图片长度必须介于 0 和 200 之间")
	public String getCoverImgSrc() {
		return coverImgSrc;
	}

	public void setCoverImgSrc(String coverImgSrc) {
		this.coverImgSrc = coverImgSrc;
	}
	
	@Length(min=0, max=11, message="总积分长度必须介于 0 和 11 之间")
	public String getIntegralCount() {
		return integralCount;
	}

	public void setIntegralCount(String integralCount) {
		this.integralCount = integralCount;
	}
	
	@Length(min=0, max=11, message="序号长度必须介于 0 和 11 之间")
	public String getImgRank() {
		return imgRank;
	}

	public void setImgRank(String imgRank) {
		this.imgRank = imgRank;
	}
	
	@Length(min=0, max=1, message="展示类型长度必须介于 0 和 1 之间")
	public String getShowType() {
		return showType;
	}

	public void setShowType(String showType) {
		this.showType = showType;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	public Date getBeginBeginDate() {
		return beginBeginDate;
	}

	public void setBeginBeginDate(Date beginBeginDate) {
		this.beginBeginDate = beginBeginDate;
	}
	
	public Date getEndBeginDate() {
		return endBeginDate;
	}

	public void setEndBeginDate(Date endBeginDate) {
		this.endBeginDate = endBeginDate;
	}
		
}